package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AnalyseLikesMapper;
import com.ruoyi.system.domain.AnalyseLikes;
import com.ruoyi.system.service.IAnalyseLikesService;

/**
 * 点赞Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-02
 */
@Service
public class AnalyseLikesServiceImpl implements IAnalyseLikesService 
{
    @Autowired
    private AnalyseLikesMapper analyseLikesMapper;

    /**
     * 查询点赞
     * 
     * @param id 点赞主键
     * @return 点赞
     */
    @Override
    public AnalyseLikes selectAnalyseLikesById(Long id)
    {
        return analyseLikesMapper.selectAnalyseLikesById(id);
    }

    /**
     * 查询点赞列表
     * 
     * @param analyseLikes 点赞
     * @return 点赞
     */
    @Override
    public List<AnalyseLikes> selectAnalyseLikesList(AnalyseLikes analyseLikes)
    {
        return analyseLikesMapper.selectAnalyseLikesList(analyseLikes);
    }

    /**
     * 新增点赞
     * 
     * @param analyseLikes 点赞
     * @return 结果
     */
    @Override
    public int insertAnalyseLikes(AnalyseLikes analyseLikes)
    {
        return analyseLikesMapper.insertAnalyseLikes(analyseLikes);
    }

    /**
     * 修改点赞
     * 
     * @param analyseLikes 点赞
     * @return 结果
     */
    @Override
    public int updateAnalyseLikes(AnalyseLikes analyseLikes)
    {
        return analyseLikesMapper.updateAnalyseLikes(analyseLikes);
    }

    /**
     * 批量删除点赞
     * 
     * @param ids 需要删除的点赞主键
     * @return 结果
     */
    @Override
    public int deleteAnalyseLikesByIds(Long[] ids)
    {
        return analyseLikesMapper.deleteAnalyseLikesByIds(ids);
    }

    /**
     * 删除点赞信息
     * 
     * @param id 点赞主键
     * @return 结果
     */
    @Override
    public int deleteAnalyseLikesById(Long id)
    {
        return analyseLikesMapper.deleteAnalyseLikesById(id);
    }
}
